<div class="msgBox">
	<div class="common ok">
		<i class="icon"></i>
		<div class="msg-bd">
			<div class="msg-main">
				<h3><?php echo $this->language('消息提示')?>:</h3>
				<p><?php echo $this->language('数据保存成功')?>: <em class="red"><?php echo $this->language($this->throwMessage);?></em>!</p>
				<p><?php echo $this->language('您可以选择以下操作，如果您没有任何操作，系统将在  <em id="timer">{0}</em> 秒内自动转跳。', array('10'))?></p>
				<hr/>
				<ul class="guide">
					<?php if($this->referer) { ?>
					<li><a href="<?php echo $this->referer;?>"><?php echo $this->referer;?></a></li>
					<?php } ?>
					<?php foreach(system_nav_crumbs::getInstance()->getPages() AS $page) {?>
					<li><a href="<?php echo $page->href();?>"><?php echo $this->escape($page->getLabel());?> »</a></li>
					<?php } ?>
				</ul>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>
<?php $this->headScript()->captureStart();?>
var secends = 10;
function _timer() {	
	setTimeout(function(){
		secends--;
		$('#timer').text(secends.toString());
		if(secends == 0) {
			var referer = '<?php echo $this->referer;?>';
			if(referer == '') referer = $('.guide').find('a').first().attr('href');
			window.location = referer;
		} else {
			_timer();
		}
	}, 1000);
}
$(document).ready(function(){$('#timer').text(secends);_timer();});
<?php $this->headScript()->captureEnd();?>